public/io/ring.h: add FRONT/BACK_RING_ATTACH macros
authorPaul Durrant <pdurrant@amazon.com>
Mon, 16 Dec 2019 16:36:37 +0000 (17:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Dec 2019 16:36:37 +0000 (17:36 +0100)
commit787bda8eb85b0c6f8b3c81e3586cdf90cd4815f8
tree00cbe91df3aa699374efa05def7180c7ea1ca29a
parentffa21ea53034a3aebcf20c5cf737961f9209d34a
public/io/ring.h: add FRONT/BACK_RING_ATTACH macros

The version of this header present in the Linux source tree has contained
such macros for some time. These macros, as the names imply, allow front
or back rings to be set up for existent (rather than freshly created and
zeroed) shared rings.

This patch is to update this, the canonical version of the header, to
match the latest definition of these macros in the Linux source.

NOTE: The way the new macros are defined allows the FRONT/BACK_RING_INIT
      macros to be re-defined in terms of them, thereby reducing
      duplication.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/ring.h